<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>Stakeholder Login</title>
        <style type="text/css">
            .gritter-notice-wrapper {
                left:200px;
                top: 50px;
            }
        </style>
    </h:head>
    <h:body>
        <h:form id="formMain">
            <p:menubar autoSubmenuDisplay="true">
                <p:submenu label="Login">
                    <p:menuitem value="Login" url="StakeholderLogin.xhtml" />
                </p:submenu>

                <p:submenu label="Branch Management">
                    <p:menuitem value="Add Branch" url="StakeholderAddBranch.xhtml" />
                    <p:menuitem value="View All" url="StakeholderViewAllBranch.xhtml" />
                    <p:menuitem value="Edit Info" url="TCubeEditBranchInfo.xhtml" />

                </p:submenu>
            </p:menubar>  
            <p:panel id="panel" header="Add New Stakeholder">    
                <h:panelGrid columns="2" cellpadding="10">
                    <h:outputLabel for="username" style="font-weight: bold" value="Stakeholder username: " />
                    <h:inputText required="true" label="Event Name" requiredMessage="Stakeholder username is required." id="username" value="#{stakeholderLoginManagedBean.username}">
                    </h:inputText>
                     <h:outputLabel value="Password: *"/>  
                    <h:inputSecret id="password" value="#{stakeholderLoginManagedBean.password}" required="true" requiredMessage="Password required" redisplay="true"/>
                    <p:message for="password"/>
                </h:panelGrid>
                <p:commandButton id="btn" value="Sign in Stakeholder" update="panel, msgs" action="StakeholderAddBranch?faces-redirect=true" actionListener="#{stakeholderLoginManagedBean.doLogin}" />
                <p:growl id="msgs" showDetail="true"/>
            </p:panel>
        </h:form>
    </h:body>
</html>